package com.sch.hsy.system.service.impl;

import com.sch.hsy.common.annotation.DataScope;
import com.sch.hsy.common.constant.UserConstants;
import com.sch.hsy.common.core.domain.entity.SysRole;
import com.sch.hsy.common.core.domain.entity.SysUser;
import com.sch.hsy.common.core.text.Convert;
import com.sch.hsy.common.exception.BusinessException;
import com.sch.hsy.common.utils.StringUtils;
import com.sch.hsy.system.domain.SysQues;
import com.sch.hsy.system.domain.SysUserRole;
import com.sch.hsy.system.mapper.SysQuesMapper;
import com.sch.hsy.system.mapper.SysRoleMapper;
import com.sch.hsy.system.mapper.SysUserMapper;
import com.sch.hsy.system.mapper.SysUserRoleMapper;
import com.sch.hsy.system.service.ISysQuesService;
import com.sch.hsy.system.service.ISysUserService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.List;

@Service
public class SysQuesServiceImpl implements ISysQuesService
{
    private static final Logger log = LoggerFactory.getLogger(SysQuesServiceImpl.class);


    @Autowired
    private SysQuesMapper quesMapper;


    @Override
    public List<SysQues> selectQuesList(SysQues ques) {
        return quesMapper.selectQuesList(ques);
    }

    @Override
    public int insertQues(SysQues ques) {
        return quesMapper.insertQues(ques);
    }

    @Override
    public int deleteQuesById(Long quesId) {
        return quesMapper.deleteQuesById(quesId);
    }
}
